﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="addGrop.aspx.cs" Inherits="Web.admin.InnerManage.Participants.addGrop" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>报名管理</title>
    <link href="../../css/style.css" rel="stylesheet" type="text/css" />
    <script src="../../js/jquery-1.3.2.min.js" type="text/javascript"></script>
    <script src="../../js/function.js" type="text/javascript"></script>
    <script type="text/javascript" language="javascript">
        function CheckEmpty() {
            if ($(".txtInput").val() == "") 
            {
                alert("小组名称为必填项，不能为空！");
                return false;
             }
            else
                return true;
        }
        function ClearToEmpty() {
            if ($(".txtInput1").val("") && $(".txtInput").val(""))
                return false;
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div class="top_div">
        <div class="top_div_left" >
                <table>
                    <tr >
                        <td ><img alt="" src="../../images/main_hl.gif" /></td>
                        <td ><img alt="" src="../../images/main_hl2.gif" /></td>
                        <td class="topNav"><span>添加小组</span></td>
                        <td><img alt="" src="../../images/main_hr.gif" /></td>
                    </tr>
                </table>
        </div>
    </div>

   <div class="middle_div">
        <div class="middle_left"></div>
        <div class="middle_middle">
            <div class="navigation">
                首页&gt;报名管理&gt;添加报名小组
                <div style="float:right; margin-right:5px;">
                    <a href='../InnerPar.aspx?id=<%= Request["ContestId"] %>'>返回报名列表>></a>
                </div>
            </div>
            <div class="submitTable">
                <table >
                    <tr>
                        <th>小组名称：</th>
                        <td>
                            <asp:TextBox ID="TextGro" CssClass="txtInput" runat="server" ></asp:TextBox>
                            <label  runat="server">*</label>
                            <input id="GroId" type="hidden" runat="server" />
                        </td>
                    </tr>
                    
                    <tr>
                        <th>所报竞赛：</th>
                        <td>
                            <asp:DropDownList ID="ContestsList"  runat="server" AutoPostBack="true" 
                                onselectedindexchanged="ContestsList_SelectedIndexChanged" >
                        </asp:DropDownList></td>                        
                    </tr>
                    <tr>
                        <th>指导教师: </th>
                        <td>
                            <asp:TextBox ID="teaBox" runat="server" CssClass="txtInput1"></asp:TextBox>
                        </td>
                    </tr> 
                    <tr>
                        <th>是否专业组: </th>
                        <td>
                            <asp:RadioButtonList runat="server" ID="IsSpecialtyList" RepeatDirection="Horizontal">
                                <asp:ListItem Selected="True" Value="1">是</asp:ListItem>
                                <asp:ListItem Value="0">否</asp:ListItem>
                            </asp:RadioButtonList>
                        </td>
                    </tr>            
                    
                    <tr>
                        <td>
                            <asp:Button ID="btn_Save"  OnClientClick="return CheckEmpty();" runat="server" 
                                Text="保存" CssClass="btn_submit" onclick="btn_Save_Click" Height="33px" 
                                Width="72px" />
                        </td>
                        <td>
                            <asp:Button ID="btn_Reset" OnClientClick="return ClearToEmpty();" runat="server" Text="重置"  CssClass="btn_reset"/>
                        </td>
                    </tr>
                </table>
            </div>
        </div>
        <div class="middle_right"></div>
    </div>
    </form>
</body>
</html>
